import { defineStore } from 'pinia'

interface ReservationInfo {
  roomId: string
  roomName: string
  startTime: string
  endTime: string
  facilities: string
  reservationTime: any
}

export const useReservationStore = defineStore('reservation', {
  state: () => ({
    reservationInfo: null as ReservationInfo | null
  }),
  actions: {
    setReservationInfo(info: ReservationInfo) {
      this.reservationInfo = info
    },
    clearReservationInfo() {
      this.reservationInfo = null
    }
  }
})
